package com.service.impl;

import com.bean.Recoding;
import com.dao.RecodingDao;
import com.service.RecodingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class RecodingServiceImpl implements RecodingService {
    @Resource
    RecodingDao recodingDao;


    @Override
    public void addRecoding(int id, String username, String question, String contact, String address, Date date, String accender_name, String sender) {
        recodingDao.addRecoding(id, username, question, contact, address, date, accender_name, sender);
    }

    @Override
    public List<Recoding> recodingList() {
        return recodingDao.recodingList();
    }

    @Override
    public void deleteRecodingById(int id) {
        recodingDao.deleteRecodingById(id);
    }
}
